Skip to content

[log] config/config_stdin: add debug logging to helper functions#7239

Merged
lpcox merged 2 commits into
mainfrom
log/enhance-config-stdin-e7be582a2619c653
Jun 9, 2026
Merged

[log] config/config_stdin: add debug logging to helper functions#7239
lpcox merged 2 commits into
mainfrom
log/enhance-config-stdin-e7be582a2619c653

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Add logStdin.Printf calls to three previously unlogged functions in internal/config/config_stdin.go.

Changes

assignLegacyIntAlias

Log when a deprecated snake_case alias (connect_timeout / tool_timeout) is applied. This surfaces configs that should migrate to the camelCase equivalents (connectTimeout / toolTimeout) — visible via DEBUG=config:config_stdin.

stripExtensionFieldsForValidation

Log the server count when stripping gateway-specific extension fields (guard, auth, tool_response_filters) before schema validation. Helpful for tracing the validation pipeline.

convertStdinServerConfig (HTTP branch)

Log when custom connectTimeout or toolTimeout are configured on an HTTP server, making non-default timeout configuration visible during debugging.

Validation

  • go build — compiles cleanly
  • go test ./... — all 26 Go packages pass
  • gofmt — no formatting changes needed
  • ⚠️ Rust guard tests skipped — crates.io blocked by network firewall (unrelated to Go changes)

File modified

  • internal/config/config_stdin.go (7 lines added, 0 deleted)

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • index.crates.io

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "index.crates.io"

See Network Configuration for more information.

Generated by Go Logger Enhancement · sonnet46 15.7M ·

Add logStdin.Printf calls to three previously unlogged functions:

- assignLegacyIntAlias: log when a deprecated snake_case alias
  (connect_timeout/tool_timeout) is applied, helping identify configs
  that should migrate to camelCase equivalents
- stripExtensionFieldsForValidation: log server count processed when
  stripping gateway-specific extension fields before schema validation
- convertStdinServerConfig (HTTP branch): log when custom
  connectTimeout or toolTimeout are configured on an HTTP server

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jun 9, 2026
@lpcox lpcox marked this pull request as ready for review June 9, 2026 13:53
Copilot AI review requested due to automatic review settings June 9, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional DEBUG=config:config_stdin instrumentation in internal/config/config_stdin.go to make stdin config conversion/validation behavior more observable during troubleshooting.

Changes:

  • Log when deprecated snake_case timeout aliases are applied (connect_timeout, tool_timeout).
  • Log how many servers were processed while stripping gateway-only extension fields prior to schema validation.
  • Log when an HTTP server has custom connect/tool timeouts configured.
Show a summary per file
File Description
internal/config/config_stdin.go Adds debug logging in stdin config parsing helpers to improve traceability of legacy aliases, validation preprocessing, and timeout configuration.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread internal/config/config_stdin.go
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
GitHub Advanced Security started work on behalf of lpcox June 9, 2026 14:39 View session
GitHub Advanced Security finished work on behalf of lpcox June 9, 2026 14:40
@lpcox lpcox merged commit 478c30b into main Jun 9, 2026
27 checks passed
@lpcox lpcox deleted the log/enhance-config-stdin-e7be582a2619c653 branch June 9, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants